Some companies do not use a third party of jquery or Zeptio to develop their mobile web sites directly using native JavaScript. Native JavaScript functionality is quite powerful, except that some properties do not support IE8 of the following
Document directory
Index in the element: $ ("# More-Info "). index ("H3") New. the has () method (has document, commit) is equivalent to the has () filter in the selector. It obtains a jquery set and returns elements containing the specified
1.firefox cannot support innertext.Firefox supports innerHTML but does not support innertext, it supports textcontent to implement innertext, but it also retains the extra space by default. If you do not need to textcontent, if the string contains
Jquery1.9 is always used in the project, and browser objects are not supported. Baidu once found the solution. Here we will share with you that if you have encountered this problem, do not miss the recent project requirements, the cycle plug-in of
1. Firefox cannot support innertext.Firefox supports innerhtml but does not support innertext. It supports textcontent to implement innertext, but by default, redundant spaces are retained. If textcontent is not required, you can use innerhtml
JavaScript compatibility has long been a major problem for Web developers. The differences between formal norms, factual standards and various implementations make many developers suffer day and night. To this end, mainly from the following aspects
JavaScript compatible with IE and Firefox Firefox's carriage return event
Copy Code code as follows:
Copy Code code as follows:
jquery compatible with IE and Firefox Firefox's carriage return event
JQuery 1.9 removed the $. browser alternative, jquery. browser.
$. Browser uses regular expressions to match userAgent to determine the browser version and type. jquery has been declared in the jquery1.3.2 document. browser and jquery. browser. we
JavaScript compatibility has long been a major problem for Web developers. The difference between formal norms, factual standards, and the existence of various implementations has made many developers suffer day and night. To this end, mainly from
JS compatibility Summary for IE and FirefoxAugust 11:39 Thursday by CottageLabel:Browser Method Properties IT notationI. Differences in functions and methods1 . GetYear () method"Analysis Notes" first look at the following code:var year = new Date ()
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.